/**
 * @ author: 汪孟苹
 */
define(["jquery","comm/page/page.servers"],function($,$servers){
	var event = {};

	event.trun = function(options){
		$("#" + options.id + " .page .btn-toolbar button").click(function(){
			var pageClick = $(this).text();
			$.extend(options,{"pageClick":pageClick});
			options.params.page = $servers.getPageActive(options);
			if(options.callback && typeof options.callback == "function")  options.callback(options.params);
		});
	}

	return event;
});